
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/include/taglib.jsp" %>
<div id="actBusFields">
    <div class="row">
        <div class="form-group col-sm-6 col-md-5 ">
            <label class="col-sm-3 control-label no-padding-right">标题:</label>
            <div class="col-sm-9">
                <span class="col-xs-11 block input-icon input-icon-right">
                    <input id="topic" name="topic" type="text"  class="form-control" value="${knowledge.topic}" readonly/>
                </span>
            </div>
        </div>
    </div><div class="row">
        <div class="form-group col-sm-6 col-md-5 ">
            <label class="col-sm-3 control-label no-padding-right">关键字:</label>
            <div class="col-sm-9">
                <span class="col-xs-11 block input-icon input-icon-right">
                    <input id="keyWord" name="keyWord" type="text"  class="form-control" value="${knowledge.keyWord}" readonly/>
                </span>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="form-group col-sm-8 col-md-7 ">
            <label class="col-sm-2 control-label no-padding-right">解决方案:</label>
            <div class="col-sm-10">
                <span class="col-xs-11 block input-icon input-icon-right">
                    <textarea id="solution" name="solution" datatype="*1-500" class="form-control" rows="3" readonly>${knowledge.solution}</textarea>
                    <%--<textarea id="content" name="content" class="form-control" rows="3" readonly>${knowledge.content}</textarea>--%>
                </span>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="form-group col-sm-6 col-md-5">
            <label class="col-sm-3 control-label no-padding-right">业务系统:</label>
            <div class="col-sm-9">
                <span class="col-xs-11 block input-icon input-icon-right">
                    <input  id="operationName" datatype="*" nullmsg="业务系统不能为空!" onclick="selectBus()" placeholder="请选择业务系统" name="operationName" readonly type="text" class="form-control" value="${knowledge.operationName}"/>
                    <input  style="display:none" id="operation" datatype="*" nullmsg="业务不能为空!" onclick="selectBus()" placeholder="请选择业务" name="operation" readonly type="text" class="form-control" value="${knowledge.operation}"/>
                </span>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="form-group col-sm-6 col-md-5 ">
            <label class="col-sm-3 control-label no-padding-right">类型:</label>
            <div class="col-sm-9">
                <span class="col-xs-11 block input-icon input-icon-right">
                    <tag:select nameKey="knowledge_type" name="type" clazz="form-control" isAddDefaltOption="true" defaltOptionValue="--请选择--" initSelectedKey="${knowledge.type}"/>
                    <%--<tag:select nameKey="pro_priority" name="priority"  clazz="form-control" isAddDefaltOption="true" defaltOptionValue="--请选择--" initSelectedKey="${knowledge.priority}" disabled="true"/>--%>
                </span>
            </div>
        </div>
        <%--<div class="form-group col-sm-6 col-md-5 ">--%>
            <%--<label class="col-sm-3 control-label no-padding-right">问题原因分类:</label>--%>
            <%--<div class="col-sm-9">--%>
                <%--<span class="col-xs-11 block input-icon input-icon-right">--%>
                    <%--<tag:select nameKey="pro_reason" name="reason" clazz="form-control" isAddDefaltOption="true" defaltOptionValue="--请选择--" initSelectedKey="${knowledge.reason}" disabled="true"/>--%>
                <%--</span>--%>
            <%--</div>--%>
        <%--</div>--%>
    </div>
    <c:forEach items="${fieldList}" var="firld" varStatus="i">
        <div class="row">
            <div class="form-group col-sm-8 ">
                <label class="col-sm-2 control-label no-padding-right">${firld.field}:</label>
                <div class="col-sm-10">
                    <%--<span class="col-xs-11 block input-icon input-icon-right">--%>
                        <%--<input   name="valueDictionarys[${i.index}].fieldId" type="hidden" value="${firld.id}"/>--%>
                         <c:if test="${firld.fieldType == '1'}">
                             <input  id="${firld.fieldName}" name="valueDictionarys[${i.index}].fieldValue" type="text" readonly class="form-control" value="<c:forEach items="${leave.valueDictionarys}" var="valueDictionary"><c:if test="${firld.id == valueDictionary.fieldId}">${valueDictionary.fieldValue}</c:if></c:forEach>"/>
                         </c:if>
                         <c:if test="${firld.fieldType == '2'}">
                             <textarea  id="${firld.fieldName}" name="valueDictionarys[${i.index}].fieldValue" readonly class="form-control" rows="3"><c:forEach items="${leave.valueDictionarys}" var="valueDictionary"><c:if test="${firld.id == valueDictionary.fieldId}">${valueDictionary.fieldValue}</c:if></c:forEach></textarea>

                         </c:if>
                    <%--</span>--%>
                </div>
            </div>
        </div>

    </c:forEach>
</div>
<c:if test="${flag == 2}">
    <%@include file="../activiti/processComSub.jsp"%>
</c:if>
<script>
    var setting = {
        view: {dblClickExpand: false}
        ,data: {key: {name:"name"},simpleData: {enable: true,idKey: "id",pIdKey: "parentId"}}
        ,callback: {}
    };
    var ztree;
    $(function(){
        var data='${operationTree}';
        ztree=$.fn.zTree.init($("ul[name='operationTree']"), setting, eval(''+data+''));//ztree树加载
    });
</script>

